package at.fhj.itm11.fotorater.controller;

import javax.ws.rs.FormParam;
import org.jboss.resteasy.annotations.providers.multipart.PartType;

public class PhotoUploadController {

	public PhotoUploadController() {

	}

	private byte[] data;

	private String fileType;
	
	private String category;
	
	private String name;

	
	public byte[] getData() {
		return data;
	}

	@FormParam("uploadedFile")
	@PartType("application/octet-stream")
	public void setData(byte[] data) {
		this.data = data;
	}

	public String getFileType() {
		return this.fileType;
	}

	@FormParam("fileType")
	public void setFileType(String fileType) {
		this.fileType = fileType;
	}
	
	public String getCategory() {
		return this.category;
	}
	
	@FormParam("category")
	public void setCategory(String category) {
		this.category = category;
	}
	
	public String getName() {
		return this.name;
	}
	
	@FormParam("name")
	public void setName(String name) {
		this.name = name;
	}
}
